package cli.command;

import java.util.concurrent.atomic.AtomicBoolean;

public class Exit implements Command {
    private AtomicBoolean exitFlag;

    public Exit(AtomicBoolean exitFlag) {
        this.exitFlag = exitFlag;
    }

    @Override
    public void handle(String[] args) {
        this.exitFlag.set(true);
    }
}
